package com.anyou.common.oss;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
* @Description: 腾讯云oss配置文件
* @author: ylj
* @date: 2022/4/1 17:24
*/
@Component
@PropertySource(value = "classpath:tencentoss.properties")
public class TencentOssConfig {

    public static String secretId;

    public static String secretKey;

    public static String regionName;

    public static String bucketName;

    public static String fileDir;

    public static String baseUrl;

    @Value("${tencent.oss.secretId}")
    public void setSecretId(String secretId) {this.secretId = secretId;}

    @Value("${tencent.oss.secretKey}")
    public void setSecretKey(String secretKey){this.secretKey = secretKey;}

    @Value("${tencent.oss.regionName}")
    public void setRegionName(String regionName){this.regionName = regionName;}

    @Value("${tencent.oss.bucketName}")
    public void setBucketName(String bucketName){this.bucketName = bucketName;}

    @Value("${tencent.oss.fileDir}")
    public void setFileDir(String fileDir){this.fileDir = fileDir;}

    @Value("${tencent.oss.baseUrl}")
    public void setBaseUrl(String baseUrl){this.baseUrl = baseUrl;}

}
